package org.example.myleet.p904;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(3 == solution.totalFruit(new int[]{1,2,1}));
        Assert.isTrue(3 == solution.totalFruit(new int[]{0,1,2,2}));
        Assert.isTrue(4 == solution.totalFruit(new int[]{1,2,3,2,2}));
        Assert.isTrue(5 == solution.totalFruit(new int[]{3,3,3,1,2,1,1,2,3,3,4}));
    }
}
